<template>
  <div class="weekend">
    <div class="weekend-smoll">
      <h2 class="weekend-smoll-h2">周末去哪儿</h2>
      <ul>
        <li v-for="item of list" :key="item.id">
          <div class="weekend-smoll-img">
            <img :src="item.imgUrl">
          </div>
          <div class="weekend-smoll-con">{{item.city}}</div>
          <div class="weekend-smoll-text">{{item.desc}}</div>
        </li>
      </ul>
    </div>
  </div>
</template>

<script>
export default {
  name: 'HomeWeekend',
  props: {
    list: Array
  },
  data () {
    return {
    }
  }
}
</script>

<style lang="stylus" scoped="scoped">
  .weekend-smoll-h2
    background #f6f6f6
    padding 0.4rem 0
    padding-left 0.2rem
    font-size 0.4rem
  .weekend-smoll-img
    height 2.98rem
  .weekend-smoll-img
    img
      width 100%
  .weekend-smoll-con
    padding-left 0.2rem
    margin-top 0.3rem
  .weekend-smoll-text
    padding-left 0.2rem
    margin 0.3rem auto
    font-size 0.25rem
</style>
